﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <WorkflowActions>
    <Action Name="Update List Items by CAML (Sandboxed)"
            SandboxedFunction="true"
            Assembly="$SharePoint.Project.AssemblyFullName$"
            ClassName="EFSBWFActivities.updateItemsByCamlSB"
            FunctionName="Execute"
            AppliesTo="all"
            UsesCurrentItem="false"
            Category="EF Workflow Activities Sandboxed">
      <RuleDesigner Sentence="update items in list: %1, field name: %2, new value: %3 as new version: %5, by caml where clause %4">
        <FieldBind Field="ListTitle" Text="List Title" DesignerType="ListNames" Id="1"/>
        <FieldBind Field="FieldName" Text="Field Name" DesignerType="TextArea" Id="2"/>
        <FieldBind Field="FieldValue" Text="Field Value" DesignerType="TextArea" Id="3"/>
        <FieldBind Field="VarCAML" Text="CAML string variable" DesignerType="TextArea" Id="4"/>
        <FieldBind Field="NewVersion" Text="" DesignerType="Bool" Id="5"/>
      </RuleDesigner>
      <Parameters>
        <Parameter Name="__Context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext, Microsoft.SharePoint.WorkflowActions" Direction="In" DesignerType="Hide" />
        <Parameter Name="ListTitle" Type="System.String, mscorlib" Direction="In" />
        <Parameter Name="FieldName" Type="System.String, mscorlib" Direction="In" />
        <Parameter Name="FieldValue" Type="System.String, mscorlib" Direction="In" />
        <Parameter Name="VarCAML" Type="System.String, mscorlib" Direction="In" />
        <Parameter Name="NewVersion" Type="System.Boolean, mscorlib" InitialValue="Yes" Direction="In" />
      </Parameters>
    </Action>
  </WorkflowActions>
</Elements>
